#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# @Project : chat_model 
# @File    : session_knowledge_model.py
# @IDE     : PyCharm 
# @Author  :ZH
# @Time    : 2025/1/15 11:26
from tortoise import fields

from apps.models.base_model import BaseModel


class SessionKnowledge(BaseModel):
    __doc__ = "会话和知识库绑定关系表"
    session_id = fields.IntField(null=False, description='会话id')
    knowledge_id = fields.IntField(null=False, description='知识库id, -1表示全部启动')
    user_id = fields.IntField(null=False, description='用户id')

    class Meta:
        table = "session_knowledge"
        table_description = "会话和知识库绑定关系表"

